package com.itheima.mapper;

import com.itheima.domain.Record;
import com.itheima.domain.RecordSelective;

import java.util.List;

public interface RecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Record record);

    int insertSelective(Record record);

    Record selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Record record);

    int updateByPrimaryKey(Record record);

    List<Record> selectAllRecord();

    List<Record> selectRecordsSelective(RecordSelective selective);

    List<Record> selectRecordsByBorrower(String name);
    int selectRecordNumByName(String name);
    int selectRecordNum();
    int selectRecordNumSelective(RecordSelective selective);
}